package com.hualan.mapper;

import com.hualan.pojo.PricingType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PricingTypeMapper {

    int deleteByPrimaryKey(Long id);

    int insert(PricingType record);

    int insertSelective(PricingType record);

    PricingType selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(PricingType record);

    int updateById(@Param("id")Integer id, @Param("type") String type);

    List<PricingType> selectByType(String type);

    int deleteBatch(List<Integer> ids);
    void addPricingType(PricingType pricingType);
    void updatePricingType(PricingType pricingType);
    Integer getTypeIdByTypeName(String typeName);
    String getTypeNameById(Integer typeId);


}
